package myschool.test3;

import myschool.dao.StudentDao;
import myschool.entity.Student;
import myschool.util.MybatisUtil;
import org.apache.ibatis.session.SqlSession;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.session.defaults.DefaultSqlSession;
/**
 * @author oldliu
 * @since 1.0
 */
public class StuQ4 {
    public static void main(String[] args) throws ParseException {

        SqlSession s = MybatisUtil.get();
        System.out.println(">>>>"+s.getClass().getName());
        StudentDao mapper = s.getMapper(StudentDao.class);
//        List<Student> list = mapper.search4(6, 1, 5);
//
//        list.forEach(System.out::println);
        MybatisUtil.close(s);


    }
}
